function update_page_state(cb)
{
	if (cb.checked)
		$('Cms_MaintenanceParams_maintenance_page').disabled = false;
	else
		$('Cms_MaintenanceParams_maintenance_page').disabled = true;
		
	$('Cms_MaintenanceParams_maintenance_page').select_update();
}

window.addEvent('domready', function(){
	var cb = $('Cms_MaintenanceParams_enabled');
	if (cb)
	{
		update_page_state(cb);
		cb.addEvent('click', update_page_state.pass(cb));
	}
});